// packageAPI/pages/api/accountInfo/accountInfo.js
Page({
  data: {
    schema:[],
    formData:{},
    result:'',
    title:'账号信息',
    apiName:'',
  },
  onLoad(option) {
    this.setData({
      zh:option.zh,
      remark:option.remark,
      weburl:option.docUrl
    })
  },
  getAccountInfoSync(e) {
    const res = wx.getAccountInfoSync()
    this.setData({
      result:res,
      apiName:e.currentTarget.dataset.apiname
    })
  }
})